package com.example.statuspattern.entity;

/**
 * @author ash
 * @description
 * @create 2023/2/16  22:43:10
 * @className Context
 * @verson 1.0.0
 */
public class Context {

    private State state;

    public Context(State state) {
        this.state = state;
    }

    public State getState() {
        return state;
    }

    public void setState(State state) {
        this.state = state;
    }

    public void request(){
        state.handle(this);
    }
}
